package Server.ExtComponents.BaseConfig;


import org.aeonbits.owner.Config;


@Config.Sources("file:res/gameserver.properties")
public interface BaseServerConfig extends Config {
    Boolean debug();
    Boolean isRunning();
    Boolean isSafeopen();
    Boolean AIO();
    Boolean NETTY_DEBUG();
    Short  GameserverPort();
    Integer readTimeOut();
    Integer writeTimeOut();
    Integer maxConnection();

    Integer ExchangeChips();//积分兑换筹码倍率

    //数据包协议解析
    Integer maxFrameLength();
    Integer lengthFieldOffset();
    Integer lengthFieldLength();
    Integer lengthAdjustment();
    Integer initialBytesToStrip();

    //业务线程池配置（netty自带框架）
    Long  maxChannelMemorySize();
    Long  maxTotalMemorySize();
    Integer Idle();
    Integer AIThreadNums();
    Integer BattleThreadNums();
    Integer WriteBufNum();
    Integer EventExecutorGroupThreads();
    Integer IoEventLoopGroupThread();
    Integer AcceptHandlerThread();

    Long AIO_READ_TIMEOUT();// AIO read time out
    Long AIO_WRITE_TIMEOUT();// AIO write time out
    Long checkInterval();//




    //TableNum
    Integer TableNum();

    //记录接收包周期2秒
    Long CountPacktime();
    /**获取sigar配置路径*/
    String SigarPath();
}

